  <!DOCTYPE html>
<html lang="en">
<head>
<title>JwsCms内容管理系统</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="__CSS__/style.css" />
<script src="__STATIC__/js/jquery-1.7.2.min.js"></script> 

</head>
<body>
  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">数据表</a></li>
    <li><a href="#">基本内容</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
      <ul class="toolbar">
        <li class="click"><a href="{:U('add')}"><span><img src="__IMG__/t01.png" /></span>添加</a></li>
        <li><span><img src="__IMG__/t03.png" /></span>删除</li>
      </ul>
    </div>

          <form action="{:U('Sort')}" method="post">
            <table class="tablelist">
                  <thead>
                    <tr>
                      <th>排序</th>
                      <th>字段名</th>
                      <th>别名</th>
                      <th>字段类型</th>
                      <th>主表</th>
                      <th>状态</th>
                      <th>操作</th>
                    </tr>
                  </thead>
              <tbody>
                 <volist name="list" id="vo">
                    <if condition="$vo['status'] eq 1">
                    <tr>
                      <td><input type="text" name="sort[{$vo.field_id}]" value="{$vo.sort}" class="file_sort" /></td>
                      <td>{$vo.field}</td>
                      <td>{$vo.name}</td>
                      <td>
                        <if condition="$vo['type'] eq editor">编辑器 
                          <elseif condition="$vo['type'] eq channel_id">栏目
                          <else />{:get_attribute_type($vo['type'])}
                        </if>
                      </td>
                      <td><if condition="$vo['issystem'] eq 1"><font color="blue">√</font><else /> <font color="red">╳</font></if></td>
                      <td><span class="badge badge-success">开启<span></td>
                      <td>
                      <a href="{:U('editField',array('id'=>$vo['field_id']))}">编辑</a>  |
                      <if condition="$vo['issystem'] eq 1"> <font color="#ddd">禁用</font><else/><a href="{:U('Status',array('fieldid'=>$vo['field_id'],'status'=>$vo['status'],issystem=>$vo['issystem']))}">禁用</a></if>
                      <if condition="$vo['issystem'] eq 2"><a href="{:U('delField',array('id'=>$vo['field_id']))}">删除</a></if>
                      </td>
                    </tr>
                    </if> 
                 </volist>
                   <volist name="list" id="vo">
                    <if condition="$vo['status'] eq 0">
                      <tr>
                      <td><input type="text" name="sort[{$vo.field_id}]" value="{$vo.sort}" class="file_sort"  /></td>
                      <td>{$vo.field}</td>
                      <td>{$vo.name}</td>
                      <td>
                        <if condition="$vo['type'] eq editor">编辑器 
                          <elseif condition="$vo['type'] eq channel_id">栏目
                          <else />{:get_attribute_type($vo['type'])}
                        </if>
                      </td>
                      <td><if condition="$vo['issystem'] eq 1"><font color="blue">√</font><else /> <font color="red">╳</font></if></td>
                      <td><span class="badge">关闭<span></td>
                      <td><a href="{:U('editField',array('id'=>$vo['field_id']))}">编辑</a> | <a href="{:U('Status',array('fieldid'=>$vo['field_id'],'status'=>$vo['status'],issystem=>$vo['issystem']))}">启用</a></td>
                      <if condition="$vo['issystem'] eq 2"><a href="{:U('delField',array('id'=>$vo['field_id']))}">删除</a></if>
                    </tr>
                    </if> 
                 </volist>
              </tbody>
            </table>
            <div class="form-actions">
              <button class="btn btn-success" type="submit">排序</button>
            </div>
            </form>
  </div>
  <script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
    </script>
</body>
</html>